/*
 * Lock.cpp
 *
 *  Created on: 28.03.2011
 *      Author: niea
 */

#include "Lock.hpp"

namespace efs
{

Lock::Lock(pthread_mutex_t *mutex)
	: m_mutex(mutex)
{
	pthread_mutex_lock(m_mutex);
}

Lock::~Lock()
{
	pthread_mutex_unlock(m_mutex);
}

}
